import request from '../utils/request'

export function getExampleData() {
	// return request.get('/user', { username: 'admin', password: '123456' })
	return request.get('/test')
}

export function record(timestamp) {
	return request.get('/recordtimestamp', timestamp)
}

export function getTimeStamp(index) {
	return request.get('/gettimestamp', index)
}

export function realtimeApi(index) {
	return request.get('/realtimeapi', index)
}

export function temperatureApi(index) {
	return request.get('/analysisapi/temperature', index)
}
export function PHApi(index) {
	return request.get('/analysisapi/PH', index)
}
export function indooreApi(index) {
	return request.get('/analysisapi/indoor_temperature', index)
}
export function humidityApi(index) {
	return request.get('/analysisapi/water_content', index)
}
